package com.biz.primus.management.order.feign;


import com.biz.primus.management.order.degraded.DegradedDepotFeignClient;
import com.biz.primus.model.depot.vo.DepotRespVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;


/**
 * @author zzy
 * @rema 已派单控制层调用接口
 * @date 2017/11/14/009
 */
@FeignClient(qualifier = "depotFeignClient", name = "service-depot", fallback = DegradedDepotFeignClient.class)
public interface DepotFeignClient {

    /**
     * 查redis中所有的门店
     * @return
     */
    @PostMapping(value = "soa/depotService/findAllDepotsFRdb")
    List<DepotRespVo> findAllDepotsFRdb();

}
